<?xml version="1.0" encoding="utf-8" ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" 
>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>NStat :: {% block title %}{% endblock %}</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"  />
    <link rel="stylesheet" href="{{ MEDIA_URL }}css/default.css"  />
     {% block head %} {% endblock %} 
  </head>
   {% block body %} 
  <body>
    <div id="header">
      <!-- menu -->
      <div id="menu">
         {% load filters %} {% for v in settings.MENU %} {% if user.is_staff or not v.2 %} <a href="{{ v.1|insert_id:request }}">{{ v.0 }}</a> {% endif %}{% endfor %} 
      </div>
      <!-- /menu --> {% if is_paginated %} 
      <div id="pagination">
        <span class="step-links"> {% if page_obj.has_previous %} <a href="?page={{ page_obj.previous_page_number }}">Назад</a> {% endif %} <span class="current"> Страница {{ page_obj.number }} из {{ page_obj.paginator.num_pages }}. </span> {% if page_obj.has_next %} <a href="?page={{ page_obj.next_page_number }}">Вперёд</a> {% endif %} </span>
      </div>
       {% endif %} 
    </div>
    {% obsolete_warning request %}
    {% load filters %}
    {% if settings.MESSAGE %}
    <p class="warning">
    {{ settings.MESSAGE }}
    </p>
    {% endif %}
    {% if messages %}
    <div class="messages">
    <ul>
    {% for message in messages %}
    <li>{{ message }}</li>
    {% endfor %}
    </ul>
    </div>
    {% endif %}
    <!-- content -->
    <div id="content">
       {% block content %} {% endblock %} 
    </div>
    <!-- /content -->
    <!-- footer -->
    <div id="footer">
      <div class="legal">
         &copy;2008 Burdakov Daniel
      </div>
      <div class="debug">Your IP: {{ request.META.REMOTE_ADDR }}</div>
       {% if debug %} 
      <div id="debug">
        <p>
           {{ sql_queries|length }} Quer{{ sql_queries|pluralize:"y,ies" }} {% ifnotequal sql_queries|length 0 %} (<span style="cursor: pointer;" onclick="var s=document.getElementById('debugQueryTable').style;s.display=s.display=='none'?'':'none';this.innerHTML=this.innerHTML=='Show'?'Hide':'Show';">Show</span>) {% endifnotequal %} 
        </p>
        <table id="debugQueryTable" style="display: none;">
          <col width="1">
          </col>
          <col>
          </col>
          <col width="1">
          </col>
          <thead>
            <tr>
              <th scope="col">
                 # 
              </th>
              <th scope="col">
                 SQL 
              </th>
              <th scope="col">
                 Time 
              </th>
            </tr>
          </thead>
          <tbody>
             {% for query in sql_queries %} 
            <tr class="{% cycle odd,even %}">
              <td>
                 {{ forloop.counter }} 
              </td>
              <td>
                 {{ query.sql|escape }} 
              </td>
              <td>
                 {{ query.time }} 
              </td>
            </tr>
             {% endfor %} 
          </tbody>
        </table>
      </div>
       {% endif %} 
    </div>
    <!-- /footer -->
  </body>
   {% endblock %} 
</html>
